package net.dntuan.training.spring.integration;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.integration.annotation.Router;

public class CustomRouter {

  private static Logger LOGGER = LoggerFactory.getLogger(CustomRouter.class);

  @Router
  public String route(Message message) {
    LOGGER.info("content of message:" + message.getContent());
    return "outRouterChannel";
  }
}
